package com.lipaluma.xml.validator;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.lipaluma.field.validator.ValidatorFactory;

@XmlRootElement(name=XmlExcludedOfValidator.EXCLUDED_OF)
@XmlAccessorType(XmlAccessType.FIELD)
public class XmlExcludedOfValidator implements XmlValidator {
	public static final String EXCLUDED_OF = "excluded-of";
	
	@XmlElement(name="value")
	private String[] values;
	@XmlAttribute
	private String pattern;
	@XmlAttribute
	private Integer precision;
	
	public String[] getValues() {
		return values;
	}
	public String getPattern() {
		return pattern;
	}
	public Integer getPrecision() {
		return precision;
	}
	
	@Override
	public String getFunctionValidation() {
		return ValidatorFactory.VALIDATION_EXCLUDED_OF_FUNCTION;
	}
}
